package com.xuan.job.domain.message;

import com.baomidou.mybatisplus.annotation.*;
import com.xuan.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息表
 * @TableName tb_message
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="tb_message")
@Data
public class Message extends BaseEntity implements Serializable {
    /**
     * 消息id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long messageId;

    /**
     * 消息内容id
     */
    private Long textId;

    /**
     * 发送用户id
     */
    private Long sendId;

    /**
     * 发送用户id
     */
    private Long recId;

    /**
     * 是否删除 0:未删除  1:已删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}